package com.twotiger.and.bean;

import java.io.Serializable;

import com.twotiger.and.util.StringUtils;

/**
 * Created by victor on 2014/10/15 0015.
 */
public class Invest extends Basebean implements Serializable {
    private static final long serialVersionUID = 1 << 2L;

    private String projectId;//项目标示
    private String projectName; // 项目名称
    private String projectNid;//项目编号
    private int projectPeriod; //项目周期
    private double projectYield; //项目基本利率
    private double projectAwardYield;//项目奖励利率
    private double projectAmount; // 项目募集金额
    private double projectAwardCash; // 项目现金奖励
    private double interest;//投资利息
    private double cost;//实际支出
    private String amount; //投资金额
    private int projectStatus; //状态
    private String projectStatusName;
    private String ctime; //创建时间
    private String type;//类型
    private String bondId;//购买的债权标识
    private double assign;//已转让出的债权
    private double yield;
    private int device;
    private String deviceName;
    private int status;
    private String typeName;
    private String statusName;
    private String utime;
    private String list;
    private String receivedAmount;
    private String unReceiveAmount;
    private String investId;//投资记录标识
    private String mode; // 产品模式（见接口文档）
    private String completeMark;  //项目还款完成标识  1:完成；0:未完成
    private String assignMark; //项目转让标识   0:无；1:已转让；2:有转让

    public String getAssignMark() {
        return assignMark;
    }

    public void setAssignMark(String assignMark) {
        this.assignMark = assignMark;
    }

    public String getCompleteMark() {
        return completeMark;
    }

    public void setCompleteMark(String completeMark) {
        this.completeMark = completeMark;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }


    public String getInvestId() {
        return investId;
    }

    public void setInvestId(String investId) {
        this.investId = investId;
    }

    public String getReceivedAmount() {
        return receivedAmount;
    }

    public void setReceivedAmount(String receivedAmount) {
        this.receivedAmount = receivedAmount;
    }

    public String getUnReceiveAmount() {
        return unReceiveAmount;
    }

    public void setUnReceiveAmount(String unReceiveAmount) {
        this.unReceiveAmount = unReceiveAmount;
    }

    public String getList() {
        return list;
    }

    public void setList(String list) {
        this.list = list;
    }

    public double getProjectAwardYield() {
        return projectAwardYield;
    }

    public void setProjectAwardYield(double projectAwardYield) {
        this.projectAwardYield = projectAwardYield;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectNid() {
        return projectNid;
    }

    public void setProjectNid(String projectNid) {
        this.projectNid = projectNid;
    }

    public int getProjectPeriod() {
        return projectPeriod;
    }

    public void setProjectPeriod(int projectPeriod) {
        this.projectPeriod = projectPeriod;
    }

    public double getProjectYield() {
        return projectYield;
    }

    public void setProjectYield(double projectYield) {
        this.projectYield = projectYield;
    }

    public double getProjectAmount() {
        return projectAmount;
    }

    public void setProjectAmount(double projectAmount) {
        this.projectAmount = projectAmount;
    }

    public double getProjectAwardCash() {
        return projectAwardCash;
    }

    public void setProjectAwardCash(double projectAwardCash) {
        this.projectAwardCash = projectAwardCash;
    }

    public double getInterest() {
        return interest;
    }

    public void setInterest(double interest) {
        this.interest = interest;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public int getProjectStatus() {
        return projectStatus;
    }

    public void setProjectStatus(int projectStatus) {
        this.projectStatus = projectStatus;
    }

    public String getProjectStatusName() {
        return projectStatusName;
    }

    public void setProjectStatusName(String projectStatusName) {
        this.projectStatusName = projectStatusName;
    }

    public String getBondId() {
        return bondId;
    }

    public void setBondId(String bondId) {
        this.bondId = bondId;
    }

    public double getAssign() {
        return assign;
    }

    public void setAssign(double assign) {
        this.assign = assign;
    }

    public double getYield() {
        return yield;
    }

    public void setYield(double yield) {
        this.yield = yield;
    }

    public int getDevice() {
        return device;
    }

    public void setDevice(int device) {
        this.device = device;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getUtime() {
        return utime;
    }

    public void setUtime(String utime) {
        this.utime = utime;
    }

    public String getAmount() {
        if (StringUtils.isEmpty(amount)) {
            return "0.00";
        }
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
